package com.jiangjiang.eshop.schedule.factory;

import com.jiangjiang.eshop.common.bean.SpringApplicationContext;
import com.jiangjiang.eshop.schedule.builder.DefaultSaleDeliveryOrderBuilder;
import com.jiangjiang.eshop.schedule.builder.SaleDeliveryOrderBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @ClassName SaleDelieryOrderBuilderFactory
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/24 19:22
 * @Version 1.0
 **/
@Component
public class SaleDeliveryOrderBuilderFactory {
    @Autowired
    private SpringApplicationContext context;

    public SaleDeliveryOrderBuilder getBuilder(){
        return context.getBean(DefaultSaleDeliveryOrderBuilder.class);
    }
}
